<!DOCTYPE HTML>
<html lang="<?php echo $this->lang->line('header_doc_lang') ?>">
    <head>
        <title><?php echo $title ?></title>
        <meta charset="UTF-8">
        <?php
        $this->assets->css('default/style.css');
        $this->assets->display();
        ?>
        <link href="<?php echo base_url()?>assets/uploadify/uploadify.css" rel="stylesheet" type="text/css">
        <link href="<?php echo base_url()?>assets/Jcrop/css/jquery.Jcrop.css" rel="stylesheet" type="text/css">
        <link href="<?php echo base_url()?>assets/fancybox/jquery.fancybox-1.3.1.css" rel="stylesheet" type="text/css">
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url()?>assets/uploadify/swfobject.js"></script>
        <script type="text/javascript" src="<?php echo base_url()?>assets/Jcrop/js/jquery.Jcrop.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url()?>assets/fancybox/jquery.fancybox-1.3.1.js"></script>
        <script type="text/javascript" src="<?php echo base_url()?>assets/uploadify/jquery.uploadify.v2.1.4.min.js"></script>
        
        <?php if (isset($head)) {
            echo '<script type="text/javascript">';
            echo $head;
            echo '</script>';
        }?>
    </head>
    <body<?php
        if (isset($bodyid)) {
            echo ' id="' . $bodyid . '"';
        }
        ?>>
            <?php $this->site_content->welcomeUser(); ?>
        <nav>
            <?php echo anchor(base_url(), $this->lang->line('header_home')); ?>
            <?php echo anchor('upload', $this->lang->line('header_upload')); ?>
            <?php $this->site_content->loginlinks(); ?>
        </nav>
        <?php
        if (isset($page_title)) {
            echo '<h2>' . $page_title . '</h2>';
        }
        ?>
        <?php
        echo $this->message->display();
        echo $contents;
        ?>


    </body>
</html>